package com.applancer.dataprovider;

public class DataType {
	public enum Type {
		MenuData, Post, Config, Comment, User, Home
	}

	public enum FeedType {
		Home(-10), Bookmarks(-1), Normal(0);

		public int mValue;

		FeedType(int value) {
			mValue = value;
		}

		public static FeedType valueOfID(String indexStr) {

			int index = Integer.parseInt(indexStr);

			if (index == -1) {
				return Bookmarks;
			}

			if (index == -10) {
				return Home;
			}

			return Normal;
		}
	}
}
